package com.whpost.admin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author Yinzhuoyi
 * @date 2020/5/11 15:22
 */
@Controller(value = "adminIndex")
public class IndexController {


    /**
     * 主界面
     * @return
     */
    @RequestMapping(value ="/index", method = RequestMethod.GET)
    public String index(){
        return "index";
    }

    /**
     * 我的首页
     * @return
     */
    @RequestMapping(value ="/welcome", method = RequestMethod.GET)
    public String welcome(){
        return "welcome";
    }
}
